package edu.scsu.csci;

import java.util.List;

/**
 * <p>	A collection of IExecutionError objects.
 * 
 * @author Maqbool Khan
 * @since jdk 1.5
 * @see edu.scsu.csci.IExecutionError
 * @viz.diagram IExecutionErrors.tpx
 */
public interface IExecutionErrors {

	/**
	 * Add the execution to the list of existing execution errors.
	 * @param executionError
	 */
	void addError(IExecutionError executionError);

	/**
	 * @return
	 */
	List<IExecutionError> getList();

	/**
	 * @param list
	 */
	void setList(List<IExecutionError> list);
	
	/**
	 * Returns true is there are any errors.
	 * 
	 * @return
	 */
	boolean hasErrors();
	
	/**
	 * Returns the error count.
	 * 
	 * @return
	 */
	int getErrorCount();
	
	/**
	 * <p>	Clears the execution errors.
	 */
	void clear();

}